
<%@ page import="auth.Userprofile" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'userprofile.label', default: 'Userprofile')}" />
        <title>Mein BidHub</title>
        
        <style type="text/css" media="screen">
        
        .subject {
			font-size:15px;
			font-weight:bold;

		}
		
		.data {
			font-size:15px;
		
		}
        
        
        </style>
    </head>
    <body>
        <div class="body">
            <h1>Meine Daten</h1>
            <g:if test="${flash.message}">
            	<div class="message">${flash.message}</div>
            </g:if>
            <g:if test="${flash.error}">
            	<div class="errors">${flash.error}</div>
            </g:if>
      
            <div class="col_8 col" style="margin-left:150px; margin-bottom:30px; margin-right:150px; padding:2px;">
            	<span><g:link controller="auction" action="showAuctions"><g:submitButton id="bidButton" class="left" name="Meine Auktionen" /></g:link></span>
            	<span><g:link controller="bid" action="showBid"><g:submitButton id="bidButton" class="right" name="Meine Gebote" /></g:link></span>
            </div>
            
            <div class="col_12 col">
                <table>
                    <tbody>
                       <tr class="prop">
                            <td valign="top" class="subject">Username:</td>                            
                            <td valign="top" class="data">${userprofileInstance.user.login}</td>     
                        </tr>
                        <tr class="prop">
                            <td valign="top" class="subject">Password:</td>                            
                            <td valign="top" class="data"><g:link controller="user" action="changePassword">[&auml;ndern]</g:link></td>     
                        </tr>
                        <tr class="prop">
                            <td valign="top" class="subject">Vorname:</td>                            
                            <td valign="top" class="data">${fieldValue(bean: userprofileInstance, field: "firstName")}</td>
						</tr>
                    
                        <tr class="prop">
                            <td valign="top" class="subject">Nachname:</td>                            
                            <td valign="top" class="data">${fieldValue(bean: userprofileInstance, field: "lastName")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="subject">Geburtstag:</td>                            
                            <td valign="top" class="data"><g:formatDate date="${userprofileInstance?.dateOfBirth}" /></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="subject">Geschlecht:</td>                            
                            <td valign="top" class="data">${fieldValue(bean: userprofileInstance, field: "gender")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="subject">Adresse:</td>                            
                            <td valign="top" class="data">${fieldValue(bean: userprofileInstance, field: "address")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="subject">Stadt:</td>
                            
                            <td valign="top" class="data">${fieldValue(bean: userprofileInstance, field: "city")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="subject">Staat:</td>                            
                            <td valign="top" class="data">${fieldValue(bean: userprofileInstance, field: "state")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="subject">Postleitzahl:</td>                            
                            <td valign="top" class="data">${fieldValue(bean: userprofileInstance, field: "zipcode")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="subject">Email:</td>                            
                            <td valign="top" class="data">${fieldValue(bean: userprofileInstance, field: "email")}</td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="col_12 col">
                <g:form>
                    <g:hiddenField name="id" value="${userprofileInstance?.id}" />
                    <span class="button"><g:actionSubmit class="generalButton" class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
                    <span class="button"><g:actionSubmit class="generalButton" class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </g:form>
            </div>
        </div>
    </body>
</html>
